package cn.sdhuijin.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

/**
 * @author sunp@sdhuijin.cn:
 * @version 创建时间：2015年4月29日 上午10:48:13 类说明
 */

@Entity
@Table(name = "type")
public class Type extends IdEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	private String name;

	@ManyToMany
	private List<Target> targets;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the object
	 */
	public List<Target> getObjects() {
		return targets;
	}

	/**
	 * @param object
	 *            the object to set
	 */
	public void setObjects(List<Target> objects) {
		this.targets = objects;
	}

}
